package com.blb.java08springboot.controller;

import com.blb.java08springboot.entity.Teacher;
import com.blb.java08springboot.entity.TeacherInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
//    private Teacher teacher;
    private TeacherInfo teacher;

    @RequestMapping("/hello")
    public String hello(){
        return "Hello~~~~~~~~~~~~~~~~~" + teacher;
    }
}
